package com.um.jdy.platform.base.entity.dto;

import com.um.springboot.starter.orm.params.PageDTO;
import com.um.springboot.starter.orm.params.PageParams;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class BankPageDTO extends PageDTO {

    @ApiModelProperty("银行名称")
    private String name;

    @Override
    public PageParams toPageParams() {
        PageParams pageParams = toPageParams(
                new String[]{"name"},
                new String[]{"name"});
        pageParams.getCondition().put("orderby", "sort_no asc");
        return pageParams;
    }
}
